<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlrebackslash - Perl Regular Expression Backslash Sequences and Escapes - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlrebackslash">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlrebackslash.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlrebackslash">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlrebackslash">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlrebackslash">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlrebackslash">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlrebackslash">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlrebackslash">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlrebackslash">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlrebackslash">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlrebackslash">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlrebackslash">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlrebackslash">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlrebackslash">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlrebackslash">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlrebackslash">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlrebackslash">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlrebackslash">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlrebackslash">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlrebackslash">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlrebackslash">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlrebackslash">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlrebackslash">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlrebackslash">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlrebackslash">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlrebackslash">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlrebackslash">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlrebackslash">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlrebackslash">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlrebackslash">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlrebackslash">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlrebackslash">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlrebackslash">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlrebackslash">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlrebackslash">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlrebackslash">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlrebackslash">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlrebackslash">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlrebackslash">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlrebackslash">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlrebackslash">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlrebackslash">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlrebackslash">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlrebackslash">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlrebackslash">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlrebackslash">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlrebackslash">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlrebackslash">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlrebackslash">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlrebackslash">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlrebackslash">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlrebackslash">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlrebackslash">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlrebackslash">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlrebackslash">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlrebackslash">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlrebackslash">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlrebackslash">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlrebackslash">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlrebackslash">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlrebackslash">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlrebackslash">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlrebackslash">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlrebackslash">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlrebackslash">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlrebackslash">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlrebackslash">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlrebackslash">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlrebackslash">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlrebackslash">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlrebackslash">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlrebackslash">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlrebackslash">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlrebackslash">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlrebackslash">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlrebackslash">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlrebackslash">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlrebackslash">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlrebackslash">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlrebackslash">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlrebackslash">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlrebackslash">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlrebackslash.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlrebackslash">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlrebackslash">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlrebackslash">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlrebackslash">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlrebackslash">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlrebackslash">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlrebackslash">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlrebackslash">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlrebackslash">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlrebackslash">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlrebackslash">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlrebackslash">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlrebackslash">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlrebackslash">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlrebackslash">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlrebackslash">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlrebackslash">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlrebackslash">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlrebackslash">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlrebackslash">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlrebackslash">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlrebackslash">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlrebackslash">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlrebackslash">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlrebackslash">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlrebackslash">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlrebackslash">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlrebackslash">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlrebackslash">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlrebackslash">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlrebackslash">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlrebackslash">5.35.1</a>
          <a class="dropdown-item active" href="perlrebackslash.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlrebackslash.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlrebackslash.html">perlrebackslash</a>
          <div id="more">
            (<a href="perlrebackslash.txt">source</a>,
            <a href="https://metacpan.org/pod/perlrebackslash">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#The-backslash">The backslash</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#All-the-sequences-and-escapes">All the sequences and escapes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Character-Escapes">Character Escapes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Fixed-characters">Fixed characters</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Example">Example</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Control-characters">Control characters</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Example1">Example</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Named-or-numbered-characters-and-character-sequences">Named or numbered characters and character sequences</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Example2">Example</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Octal-escapes">Octal escapes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples-(assuming-an-ASCII-platform)">Examples (assuming an ASCII platform)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Disambiguation-rules-between-old-style-octal-escapes-and-backreferences">Disambiguation rules between old-style octal escapes and backreferences</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Hexadecimal-escapes">Hexadecimal escapes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples-(assuming-an-ASCII-platform)1">Examples (assuming an ASCII platform)</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Modifiers">Modifiers</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples">Examples</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Character-classes">Character classes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Unicode-classes">Unicode classes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Referencing">Referencing</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Absolute-referencing">Absolute referencing</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples1">Examples</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Relative-referencing">Relative referencing</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples2">Examples</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Named-referencing">Named referencing</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples3">Examples</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Assertions">Assertions</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples4">Examples</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Misc">Misc</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlrebackslash.html#Examples5">Examples</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlrebackslash.html#NAME">#</a>NAME</h1>

<p>perlrebackslash - Perl Regular Expression Backslash Sequences and Escapes</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlrebackslash.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>The top level documentation about Perl regular expressions is found in <a href="perlre.html">perlre</a>.</p>

<p>This document describes all backslash and escape sequences. After explaining the role of the backslash, it lists all the sequences that have a special meaning in Perl regular expressions (in alphabetical order), then describes each of them.</p>

<p>Most sequences are described in detail in different documents; the primary purpose of this document is to have a quick reference guide describing all backslash and escape sequences.</p>

<h2 id="The-backslash"><a class="permalink" href="perlrebackslash.html#The-backslash">#</a><a id="The"></a>The backslash</h2>

<p>In a regular expression, the backslash can perform one of two tasks: it either takes away the special meaning of the character following it (for instance, <code>\|</code> matches a vertical bar, it&#39;s not an alternation), or it is the start of a backslash or escape sequence.</p>

<p>The rules determining what it is are quite simple: if the character following the backslash is an ASCII punctuation (non-word) character (that is, anything that is not a letter, digit, or underscore), then the backslash just takes away any special meaning of the character following it.</p>

<p>If the character following the backslash is an ASCII letter or an ASCII digit, then the sequence may be special; if so, it&#39;s listed below. A few letters have not been used yet, so escaping them with a backslash doesn&#39;t change them to be special. A future version of Perl may assign a special meaning to them, so if you have warnings turned on, Perl issues a warning if you use such a sequence. [1].</p>

<p>It is however guaranteed that backslash or escape sequences never have a punctuation character following the backslash, not now, and not in a future version of Perl 5. So it is safe to put a backslash in front of a non-word character.</p>

<p>Note that the backslash itself is special; if you want to match a backslash, you have to escape the backslash with a backslash: <code>/\\/</code> matches a single backslash.</p>

<dl>

<dt id="[1]"><a class="permalink" href="perlrebackslash.html#%5B1%5D">#</a><a id="pod-1"></a>[1]</dt>
<dd>

<p>There is one exception. If you use an alphanumeric character as the delimiter of your pattern (which you probably shouldn&#39;t do for readability reasons), you have to escape the delimiter if you want to match it. Perl won&#39;t warn then. See also <a href="perlop.html#Gory-details-of-parsing-quoted-constructs">&quot;Gory details of parsing quoted constructs&quot; in perlop</a>.</p>

</dd>
</dl>

<h2 id="All-the-sequences-and-escapes"><a class="permalink" href="perlrebackslash.html#All-the-sequences-and-escapes">#</a><a id="All"></a>All the sequences and escapes</h2>

<p>Those not usable within a bracketed character class (like <code>[\da-z]</code>) are marked as <code>Not in [].</code></p>

<pre><code class="plaintext">\000              Octal escape sequence.  See also \o{}.
\1                Absolute backreference.  Not in [].
\a                Alarm or bell.
\A                Beginning of string.  Not in [].
\b{}, \b          Boundary. (\b is a backspace in []).
\B{}, \B          Not a boundary.  Not in [].
\cX               Control-X.
\d                Match any digit character.
\D                Match any character that isn&#39;t a digit.
\e                Escape character.
\E                Turn off \Q, \L and \U processing.  Not in [].
\f                Form feed.
\F                Foldcase till \E.  Not in [].
\g{}, \g1         Named, absolute or relative backreference.
                  Not in [].
\G                Pos assertion.  Not in [].
\h                Match any horizontal whitespace character.
\H                Match any character that isn&#39;t horizontal whitespace.
\k{}, \k&lt;&gt;, \k&#39;&#39;  Named backreference.  Not in [].
\K                Keep the stuff left of \K.  Not in [].
\l                Lowercase next character.  Not in [].
\L                Lowercase till \E.  Not in [].
\n                (Logical) newline character.
\N                Match any character but newline.  Not in [].
\N{}              Named or numbered (Unicode) character or sequence.
\o{}              Octal escape sequence.
\p{}, \pP         Match any character with the given Unicode property.
\P{}, \PP         Match any character without the given property.
\Q                Quote (disable) pattern metacharacters till \E.  Not
                  in [].
\r                Return character.
\R                Generic new line.  Not in [].
\s                Match any whitespace character.
\S                Match any character that isn&#39;t a whitespace.
\t                Tab character.
\u                Titlecase next character.  Not in [].
\U                Uppercase till \E.  Not in [].
\v                Match any vertical whitespace character.
\V                Match any character that isn&#39;t vertical whitespace
\w                Match any word character.
\W                Match any character that isn&#39;t a word character.
\x{}, \x00        Hexadecimal escape sequence.
\X                Unicode &quot;extended grapheme cluster&quot;.  Not in [].
\z                End of string.  Not in [].
\Z                End of string.  Not in [].</code></pre>

<h2 id="Character-Escapes"><a class="permalink" href="perlrebackslash.html#Character-Escapes">#</a><a id="Character"></a>Character Escapes</h2>

<h3 id="Fixed-characters"><a class="permalink" href="perlrebackslash.html#Fixed-characters">#</a><a id="Fixed"></a>Fixed characters</h3>

<p>A handful of characters have a dedicated <i>character escape</i>. The following table shows them, along with their ASCII code points (in decimal and hex), their ASCII name, the control escape on ASCII platforms and a short description. (For EBCDIC platforms, see <a href="perlebcdic.html#OPERATOR-DIFFERENCES">&quot;OPERATOR DIFFERENCES&quot; in perlebcdic</a>.)</p>

<pre><code class="plaintext">Seq.  Code Point  ASCII   Cntrl   Description.
      Dec    Hex
 \a     7     07    BEL    \cG    alarm or bell
 \b     8     08     BS    \cH    backspace [1]
 \e    27     1B    ESC    \c[    escape character
 \f    12     0C     FF    \cL    form feed
 \n    10     0A     LF    \cJ    line feed [2]
 \r    13     0D     CR    \cM    carriage return
 \t     9     09    TAB    \cI    tab</code></pre>

<dl>

<dt id="[1]1"><a class="permalink" href="perlrebackslash.html#%5B1%5D1">#</a><a id="pod-11"></a>[1]</dt>
<dd>

<p><code>\b</code> is the backspace character only inside a character class. Outside a character class, <code>\b</code> alone is a word-character/non-word-character boundary, and <code>\b{}</code> is some other type of boundary.</p>

</dd>
<dt id="[2]"><a class="permalink" href="perlrebackslash.html#%5B2%5D">#</a><a id="pod-2"></a>[2]</dt>
<dd>

<p><code>\n</code> matches a logical newline. Perl converts between <code>\n</code> and your OS&#39;s native newline character when reading from or writing to text files.</p>

</dd>
</dl>

<h4 id="Example"><a class="permalink" href="perlrebackslash.html#Example">#</a>Example</h4>

<pre><code>$str =~ /\t/;   # Matches if $str contains a (horizontal) tab.</code></pre>

<h3 id="Control-characters"><a class="permalink" href="perlrebackslash.html#Control-characters">#</a><a id="Control"></a>Control characters</h3>

<p><code>\c</code> is used to denote a control character; the character following <code>\c</code> determines the value of the construct. For example the value of <code>\cA</code> is <code>chr(1)</code>, and the value of <code>\cb</code> is <code>chr(2)</code>, etc. The gory details are in <a href="perlop.html#Regexp-Quote-Like-Operators">&quot;Regexp Quote-Like Operators&quot; in perlop</a>. A complete list of what <code>chr(1)</code>, etc. means for ASCII and EBCDIC platforms is in <a href="perlebcdic.html#OPERATOR-DIFFERENCES">&quot;OPERATOR DIFFERENCES&quot; in perlebcdic</a>.</p>

<p>Note that <code>\c\</code> alone at the end of a regular expression (or doubled-quoted string) is not valid. The backslash must be followed by another character. That is, <code>\c\<i>X</i></code> means <code>chr(28) . &#39;<i>X</i>&#39;</code> for all characters <i>X</i>.</p>

<p>To write platform-independent code, you must use <code>\N{<i>NAME</i>}</code> instead, like <code>\N{ESCAPE}</code> or <code>\N{U+001B}</code>, see <a href="charnames.html">charnames</a>.</p>

<p>Mnemonic: <i>c</i>ontrol character.</p>

<h4 id="Example1"><a class="permalink" href="perlrebackslash.html#Example1">#</a>Example</h4>

<pre><code>$str =~ /\cK/;  # Matches if $str contains a vertical tab (control-K).</code></pre>

<h3 id="Named-or-numbered-characters-and-character-sequences"><a class="permalink" href="perlrebackslash.html#Named-or-numbered-characters-and-character-sequences">#</a><a id="Named"></a>Named or numbered characters and character sequences</h3>

<p>Unicode characters have a Unicode name and numeric code point (ordinal) value. Use the <code>\N{}</code> construct to specify a character by either of these values. Certain sequences of characters also have names.</p>

<p>To specify by name, the name of the character or character sequence goes between the curly braces.</p>

<p>To specify a character by Unicode code point, use the form <code>\N{U+<i>code point</i>}</code>, where <i>code point</i> is a number in hexadecimal that gives the code point that Unicode has assigned to the desired character. It is customary but not required to use leading zeros to pad the number to 4 digits. Thus <code>\N{U+0041}</code> means <code>LATIN CAPITAL LETTER A</code>, and you will rarely see it written without the two leading zeros. <code>\N{U+0041}</code> means &quot;A&quot; even on EBCDIC machines (where the ordinal value of &quot;A&quot; is not 0x41).</p>

<p>Blanks may freely be inserted adjacent to but within the braces enclosing the name or code point. So <span style="white-space: nowrap;"><code>\N{ U+0041 }</code></span> is perfectly legal.</p>

<p>It is even possible to give your own names to characters and character sequences by using the <a href="charnames.html">charnames</a> module. These custom names are lexically scoped, and so a given code point may have different names in different scopes. The name used is what is in effect at the time the <code>\N{}</code> is expanded. For patterns in double-quotish context, that means at the time the pattern is parsed. But for patterns that are delimitted by single quotes, the expansion is deferred until pattern compilation time, which may very well have a different <code>charnames</code> translator in effect.</p>

<p>(There is an expanded internal form that you may see in debug output: <code>\N{U+<i>code point</i>.<i>code point</i>...}</code>. The <code>...</code> means any number of these <i>code point</i>s separated by dots. This represents the sequence formed by the characters. This is an internal form only, subject to change, and you should not try to use it yourself.)</p>

<p>Mnemonic: <i>N</i>amed character.</p>

<p>Note that a character or character sequence expressed as a named or numbered character is considered a character without special meaning by the regex engine, and will match &quot;as is&quot;.</p>

<h4 id="Example2"><a class="permalink" href="perlrebackslash.html#Example2">#</a>Example</h4>

<pre><code>$str =~ /\N{THAI CHARACTER SO SO}/;  # Matches the Thai SO SO character

use charnames &#39;Cyrillic&#39;;            # Loads Cyrillic names.
$str =~ /\N{ZHE}\N{KA}/;             # Match &quot;ZHE&quot; followed by &quot;KA&quot;.</code></pre>

<h3 id="Octal-escapes"><a class="permalink" href="perlrebackslash.html#Octal-escapes">#</a><a id="Octal"></a>Octal escapes</h3>

<p>There are two forms of octal escapes. Each is used to specify a character by its code point specified in base 8.</p>

<p>One form, available starting in Perl 5.14 looks like <code>\o{...}</code>, where the dots represent one or more octal digits. It can be used for any Unicode character.</p>

<p>It was introduced to avoid the potential problems with the other form, available in all Perls. That form consists of a backslash followed by three octal digits. One problem with this form is that it can look exactly like an old-style backreference (see <a href="perlrebackslash.html#Disambiguation-rules-between-old-style-octal-escapes-and-backreferences">&quot;Disambiguation rules between old-style octal escapes and backreferences&quot;</a> below.) You can avoid this by making the first of the three digits always a zero, but that makes \077 the largest code point specifiable.</p>

<p>In some contexts, a backslash followed by two or even one octal digits may be interpreted as an octal escape, sometimes with a warning, and because of some bugs, sometimes with surprising results. Also, if you are creating a regex out of smaller snippets concatenated together, and you use fewer than three digits, the beginning of one snippet may be interpreted as adding digits to the ending of the snippet before it. See <a href="perlrebackslash.html#Absolute-referencing">&quot;Absolute referencing&quot;</a> for more discussion and examples of the snippet problem.</p>

<p>Note that a character expressed as an octal escape is considered a character without special meaning by the regex engine, and will match &quot;as is&quot;.</p>

<p>To summarize, the <code>\o{}</code> form is always safe to use, and the other form is safe to use for code points through \077 when you use exactly three digits to specify them.</p>

<p>Mnemonic: <i>0</i>ctal or <i>o</i>ctal.</p>

<h4 id="Examples-(assuming-an-ASCII-platform)"><a class="permalink" href="perlrebackslash.html#Examples-(assuming-an-ASCII-platform)">#</a><a id="Examples6"></a><a id="Examples-assuming-an-ASCII-platform"></a>Examples (assuming an ASCII platform)</h4>

<pre><code>$str = &quot;Perl&quot;;
$str =~ /\o{120}/;  # Match, &quot;\120&quot; is &quot;P&quot;.
$str =~ /\120/;     # Same.
$str =~ /\o{120}+/; # Match, &quot;\120&quot; is &quot;P&quot;,
                    # it&#39;s repeated at least once.
$str =~ /\120+/;    # Same.
$str =~ /P\053/;    # No match, &quot;\053&quot; is &quot;+&quot; and taken literally.
/\o{23073}/         # Black foreground, white background smiling face.
/\o{4801234567}/    # Raises a warning, and yields chr(4).
/\o{ 400}/          # LATIN CAPITAL LETTER A WITH MACRON
/\o{ 400 }/         # Same. These show blanks are allowed adjacent to
                    # the braces</code></pre>

<h4 id="Disambiguation-rules-between-old-style-octal-escapes-and-backreferences"><a class="permalink" href="perlrebackslash.html#Disambiguation-rules-between-old-style-octal-escapes-and-backreferences">#</a><a id="Disambiguation"></a>Disambiguation rules between old-style octal escapes and backreferences</h4>

<p>Octal escapes of the <code>\000</code> form outside of bracketed character classes potentially clash with old-style backreferences (see <a href="perlrebackslash.html#Absolute-referencing">&quot;Absolute referencing&quot;</a> below). They both consist of a backslash followed by numbers. So Perl has to use heuristics to determine whether it is a backreference or an octal escape. Perl uses the following rules to disambiguate:</p>

<ol>

<li><p>If the backslash is followed by a single digit, it&#39;s a backreference.</p>

</li>
<li><p>If the first digit following the backslash is a 0, it&#39;s an octal escape.</p>

</li>
<li><p>If the number following the backslash is N (in decimal), and Perl already has seen N capture groups, Perl considers this a backreference. Otherwise, it considers it an octal escape. If N has more than three digits, Perl takes only the first three for the octal escape; the rest are matched as is.</p>

<pre><code>my $pat  = &quot;(&quot; x 999;
   $pat .= &quot;a&quot;;
   $pat .= &quot;)&quot; x 999;
/^($pat)\1000$/;   #  Matches &#39;aa&#39;; there are 1000 capture groups.
/^$pat\1000$/;     #  Matches &#39;a@0&#39;; there are 999 capture groups
                   #  and \1000 is seen as \100 (a &#39;@&#39;) and a &#39;0&#39;.</code></pre>

</li>
</ol>

<p>You can force a backreference interpretation always by using the <code>\g{...}</code> form. You can the force an octal interpretation always by using the <code>\o{...}</code> form, or for numbers up through \077 (= 63 decimal), by using three digits, beginning with a &quot;0&quot;.</p>

<h3 id="Hexadecimal-escapes"><a class="permalink" href="perlrebackslash.html#Hexadecimal-escapes">#</a><a id="Hexadecimal"></a>Hexadecimal escapes</h3>

<p>Like octal escapes, there are two forms of hexadecimal escapes, but both start with the sequence <code>\x</code>. This is followed by either exactly two hexadecimal digits forming a number, or a hexadecimal number of arbitrary length surrounded by curly braces. The hexadecimal number is the code point of the character you want to express.</p>

<p>Note that a character expressed as one of these escapes is considered a character without special meaning by the regex engine, and will match &quot;as is&quot;.</p>

<p>Mnemonic: he<i>x</i>adecimal.</p>

<h4 id="Examples-(assuming-an-ASCII-platform)1"><a class="permalink" href="perlrebackslash.html#Examples-(assuming-an-ASCII-platform)1">#</a><a id="Examples7"></a><a id="Examples-assuming-an-ASCII-platform1"></a>Examples (assuming an ASCII platform)</h4>

<pre><code>$str = &quot;Perl&quot;;
$str =~ /\x50/;    # Match, &quot;\x50&quot; is &quot;P&quot;.
$str =~ /\x50+/;   # Match, &quot;\x50&quot; is &quot;P&quot;, it is repeated at least once
$str =~ /P\x2B/;   # No match, &quot;\x2B&quot; is &quot;+&quot; and taken literally.

/\x{2603}\x{2602}/ # Snowman with an umbrella.
                   # The Unicode character 2603 is a snowman,
                   # the Unicode character 2602 is an umbrella.
/\x{263B}/         # Black smiling face.
/\x{263b}/         # Same, the hex digits A - F are case insensitive.
/\x{ 263b }/       # Same, showing optional blanks adjacent to the
                   # braces</code></pre>

<h2 id="Modifiers"><a class="permalink" href="perlrebackslash.html#Modifiers">#</a>Modifiers</h2>

<p>A number of backslash sequences have to do with changing the character, or characters following them. <code>\l</code> will lowercase the character following it, while <code>\u</code> will uppercase (or, more accurately, titlecase) the character following it. They provide functionality similar to the functions <code>lcfirst</code> and <code>ucfirst</code>.</p>

<p>To uppercase or lowercase several characters, one might want to use <code>\L</code> or <code>\U</code>, which will lowercase/uppercase all characters following them, until either the end of the pattern or the next occurrence of <code>\E</code>, whichever comes first. They provide functionality similar to what the functions <code>lc</code> and <code>uc</code> provide.</p>

<p><code>\Q</code> is used to quote (disable) pattern metacharacters, up to the next <code>\E</code> or the end of the pattern. <code>\Q</code> adds a backslash to any character that could have special meaning to Perl. In the ASCII range, it quotes every character that isn&#39;t a letter, digit, or underscore. See <a href="perlfunc.html#quotemeta">&quot;quotemeta&quot; in perlfunc</a> for details on what gets quoted for non-ASCII code points. Using this ensures that any character between <code>\Q</code> and <code>\E</code> will be matched literally, not interpreted as a metacharacter by the regex engine.</p>

<p><code>\F</code> can be used to casefold all characters following, up to the next <code>\E</code> or the end of the pattern. It provides the functionality similar to the <code>fc</code> function.</p>

<p>Mnemonic: <i>L</i>owercase, <i>U</i>ppercase, <i>F</i>old-case, <i>Q</i>uotemeta, <i>E</i>nd.</p>

<h4 id="Examples"><a class="permalink" href="perlrebackslash.html#Examples">#</a>Examples</h4>

<pre><code>$sid     = &quot;sid&quot;;
$greg    = &quot;GrEg&quot;;
$miranda = &quot;(Miranda)&quot;;
$str     =~ /\u$sid/;        # Matches &#39;Sid&#39;
$str     =~ /\L$greg/;       # Matches &#39;greg&#39;
$str     =~ /\Q$miranda\E/;  # Matches &#39;(Miranda)&#39;, as if the pattern
                             #   had been written as /\(Miranda\)/</code></pre>

<h2 id="Character-classes"><a class="permalink" href="perlrebackslash.html#Character-classes">#</a><a id="Character1"></a>Character classes</h2>

<p>Perl regular expressions have a large range of character classes. Some of the character classes are written as a backslash sequence. We will briefly discuss those here; full details of character classes can be found in <a href="perlrecharclass.html">perlrecharclass</a>.</p>

<p><code>\w</code> is a character class that matches any single <i>word</i> character (letters, digits, Unicode marks, and connector punctuation (like the underscore)). <code>\d</code> is a character class that matches any decimal digit, while the character class <code>\s</code> matches any whitespace character. New in perl 5.10.0 are the classes <code>\h</code> and <code>\v</code> which match horizontal and vertical whitespace characters.</p>

<p>The exact set of characters matched by <code>\d</code>, <code>\s</code>, and <code>\w</code> varies depending on various pragma and regular expression modifiers. It is possible to restrict the match to the ASCII range by using the <code>/a</code> regular expression modifier. See <a href="perlrecharclass.html">perlrecharclass</a>.</p>

<p>The uppercase variants (<code>\W</code>, <code>\D</code>, <code>\S</code>, <code>\H</code>, and <code>\V</code>) are character classes that match, respectively, any character that isn&#39;t a word character, digit, whitespace, horizontal whitespace, or vertical whitespace.</p>

<p>Mnemonics: <i>w</i>ord, <i>d</i>igit, <i>s</i>pace, <i>h</i>orizontal, <i>v</i>ertical.</p>

<h3 id="Unicode-classes"><a class="permalink" href="perlrebackslash.html#Unicode-classes">#</a><a id="Unicode"></a>Unicode classes</h3>

<p><code>\pP</code> (where <code>P</code> is a single letter) and <code>\p{Property}</code> are used to match a character that matches the given Unicode property; properties include things like &quot;letter&quot;, or &quot;thai character&quot;. Capitalizing the sequence to <code>\PP</code> and <code>\P{Property}</code> make the sequence match a character that doesn&#39;t match the given Unicode property. For more details, see <a href="perlrecharclass.html#Backslash-sequences">&quot;Backslash sequences&quot; in perlrecharclass</a> and <a href="perlunicode.html#Unicode-Character-Properties">&quot;Unicode Character Properties&quot; in perlunicode</a>.</p>

<p>Mnemonic: <i>p</i>roperty.</p>

<h2 id="Referencing"><a class="permalink" href="perlrebackslash.html#Referencing">#</a>Referencing</h2>

<p>If capturing parenthesis are used in a regular expression, we can refer to the part of the source string that was matched, and match exactly the same thing. There are three ways of referring to such <i>backreference</i>: absolutely, relatively, and by name.</p>

<h3 id="Absolute-referencing"><a class="permalink" href="perlrebackslash.html#Absolute-referencing">#</a><a id="Absolute"></a>Absolute referencing</h3>

<p>Either <code>\g<i>N</i></code> (starting in Perl 5.10.0), or <code>\<i>N</i></code> (old-style) where <i>N</i> is a positive (unsigned) decimal number of any length is an absolute reference to a capturing group.</p>

<p><i>N</i> refers to the Nth set of parentheses, so <code>\g<i>N</i></code> refers to whatever has been matched by that set of parentheses. Thus <code>\g1</code> refers to the first capture group in the regex.</p>

<p>The <code>\g<i>N</i></code> form can be equivalently written as <code>\g{<i>N</i>}</code> which avoids ambiguity when building a regex by concatenating shorter strings. Otherwise if you had a regex <code>qr/$a$b/</code>, and <code>$a</code> contained <code>&quot;\g1&quot;</code>, and <code>$b</code> contained <code>&quot;37&quot;</code>, you would get <code>/\g137/</code> which is probably not what you intended.</p>

<p>In the <code>\<i>N</i></code> form, <i>N</i> must not begin with a &quot;0&quot;, and there must be at least <i>N</i> capturing groups, or else <i>N</i> is considered an octal escape (but something like <code>\18</code> is the same as <code>\0018</code>; that is, the octal escape <code>&quot;\001&quot;</code> followed by a literal digit <code>&quot;8&quot;</code>).</p>

<p>Mnemonic: <i>g</i>roup.</p>

<h4 id="Examples1"><a class="permalink" href="perlrebackslash.html#Examples1">#</a>Examples</h4>

<pre><code>/(\w+) \g1/;    # Finds a duplicated word, (e.g. &quot;cat cat&quot;).
/(\w+) \1/;     # Same thing; written old-style.
/(\w+) \g{1}/;  # Same, using the safer braced notation
/(\w+) \g{ 1 }/;# Same, showing optional blanks adjacent to the braces
/(.)(.)\g2\g1/; # Match a four letter palindrome (e.g. &quot;ABBA&quot;).</code></pre>

<h3 id="Relative-referencing"><a class="permalink" href="perlrebackslash.html#Relative-referencing">#</a><a id="Relative"></a>Relative referencing</h3>

<p><code>\g-<i>N</i></code> (starting in Perl 5.10.0) is used for relative addressing. (It can be written as <code>\g{-<i>N</i>}</code>.) It refers to the <i>N</i>th group before the <code>\g{-<i>N</i>}</code>.</p>

<p>The big advantage of this form is that it makes it much easier to write patterns with references that can be interpolated in larger patterns, even if the larger pattern also contains capture groups.</p>

<h4 id="Examples2"><a class="permalink" href="perlrebackslash.html#Examples2">#</a>Examples</h4>

<pre><code>/(A)        # Group 1
 (          # Group 2
   (B)      # Group 3
   \g{-1}   # Refers to group 3 (B)
   \g{-3}   # Refers to group 1 (A)
   \g{ -3 } # Same, showing optional blanks adjacent to the braces
 )
/x;         # Matches &quot;ABBA&quot;.

my $qr = qr /(.)(.)\g{-2}\g{-1}/;  # Matches &#39;abab&#39;, &#39;cdcd&#39;, etc.
/$qr$qr/                           # Matches &#39;ababcdcd&#39;.</code></pre>

<h3 id="Named-referencing"><a class="permalink" href="perlrebackslash.html#Named-referencing">#</a><a id="Named1"></a>Named referencing</h3>

<p><code>\g{<i>name</i>}</code> (starting in Perl 5.10.0) can be used to back refer to a named capture group, dispensing completely with having to think about capture buffer positions.</p>

<p>To be compatible with .Net regular expressions, <code>\g{name}</code> may also be written as <code>\k{name}</code>, <code>\k&lt;name&gt;</code> or <code>\k&#39;name&#39;</code>.</p>

<p>To prevent any ambiguity, <i>name</i> must not start with a digit nor contain a hyphen.</p>

<h4 id="Examples3"><a class="permalink" href="perlrebackslash.html#Examples3">#</a>Examples</h4>

<pre><code class="plaintext">/(?&lt;word&gt;\w+) \g{word}/   # Finds duplicated word, (e.g. &quot;cat cat&quot;)
/(?&lt;word&gt;\w+) \k{word}/   # Same.
/(?&lt;word&gt;\w+) \g{ word }/ # Same, showing optional blanks adjacent to
                          # the braces
/(?&lt;word&gt;\w+) \k{ word }/ # Same.
/(?&lt;word&gt;\w+) \k&lt;word&gt;/   # Same.  There are no braces, so no blanks
                          # are permitted
/(?&lt;letter1&gt;.)(?&lt;letter2&gt;.)\g{letter2}\g{letter1}/
                          # Match a four letter palindrome (e.g.
                          # &quot;ABBA&quot;)</code></pre>

<h2 id="Assertions"><a class="permalink" href="perlrebackslash.html#Assertions">#</a>Assertions</h2>

<p>Assertions are conditions that have to be true; they don&#39;t actually match parts of the substring. There are six assertions that are written as backslash sequences.</p>

<dl>

<dt id="\A"><a class="permalink" href="perlrebackslash.html#%5CA">#</a><a id="A"></a>\A</dt>
<dd>

<p><code>\A</code> only matches at the beginning of the string. If the <code>/m</code> modifier isn&#39;t used, then <code>/\A/</code> is equivalent to <code>/^/</code>. However, if the <code>/m</code> modifier is used, then <code>/^/</code> matches internal newlines, but the meaning of <code>/\A/</code> isn&#39;t changed by the <code>/m</code> modifier. <code>\A</code> matches at the beginning of the string regardless whether the <code>/m</code> modifier is used.</p>

</dd>
<dt id="\z,-\Z"><a class="permalink" href="perlrebackslash.html#%5Cz,-%5CZ">#</a><a id="z-Z"></a>\z, \Z</dt>
<dd>

<p><code>\z</code> and <code>\Z</code> match at the end of the string. If the <code>/m</code> modifier isn&#39;t used, then <code>/\Z/</code> is equivalent to <code>/$/</code>; that is, it matches at the end of the string, or one before the newline at the end of the string. If the <code>/m</code> modifier is used, then <code>/$/</code> matches at internal newlines, but the meaning of <code>/\Z/</code> isn&#39;t changed by the <code>/m</code> modifier. <code>\Z</code> matches at the end of the string (or just before a trailing newline) regardless whether the <code>/m</code> modifier is used.</p>

<p><code>\z</code> is just like <code>\Z</code>, except that it does not match before a trailing newline. <code>\z</code> matches at the end of the string only, regardless of the modifiers used, and not just before a newline. It is how to anchor the match to the true end of the string under all conditions.</p>

</dd>
<dt id="\G"><a class="permalink" href="perlrebackslash.html#%5CG">#</a><a id="G"></a>\G</dt>
<dd>

<p><code>\G</code> is usually used only in combination with the <code>/g</code> modifier. If the <code>/g</code> modifier is used and the match is done in scalar context, Perl remembers where in the source string the last match ended, and the next time, it will start the match from where it ended the previous time.</p>

<p><code>\G</code> matches the point where the previous match on that string ended, or the beginning of that string if there was no previous match.</p>

<p>Mnemonic: <i>G</i>lobal.</p>

</dd>
<dt id="\b{},-\b,-\B{},-\B"><a class="permalink" href="perlrebackslash.html#%5Cb%7B%7D,-%5Cb,-%5CB%7B%7D,-%5CB">#</a><a id="b-b-B-B"></a>\b{}, \b, \B{}, \B</dt>
<dd>

<p><code>\b{...}</code>, available starting in v5.22, matches a boundary (between two characters, or before the first character of the string, or after the final character of the string) based on the Unicode rules for the boundary type specified inside the braces. The boundary types are given a few paragraphs below. <code>\B{...}</code> matches at any place between characters where <code>\b{...}</code> of the same type doesn&#39;t match.</p>

<p><code>\b</code> when not immediately followed by a <code>&quot;{&quot;</code> is available in all Perls. It matches at any place between a word (something matched by <code>\w</code>) and a non-word character (<code>\W</code>); <code>\B</code> when not immediately followed by a <code>&quot;{&quot;</code> matches at any place between characters where <code>\b</code> doesn&#39;t match. To get better word matching of natural language text, see <a href="perlrebackslash.html#%5Cb%7Bwb%7D">&quot;\b{wb}&quot;</a> below.</p>

<p><code>\b</code> and <code>\B</code> assume there&#39;s a non-word character before the beginning and after the end of the source string; so <code>\b</code> will match at the beginning (or end) of the source string if the source string begins (or ends) with a word character. Otherwise, <code>\B</code> will match.</p>

<p>Do not use something like <code>\b=head\d\b</code> and expect it to match the beginning of a line. It can&#39;t, because for there to be a boundary before the non-word &quot;=&quot;, there must be a word character immediately previous. All plain <code>\b</code> and <code>\B</code> boundary determinations look for word characters alone, not for non-word characters nor for string ends. It may help to understand how <code>\b</code> and <code>\B</code> work by equating them as follows:</p>

<pre><code class="plaintext">\b	really means	(?:(?&lt;=\w)(?!\w)|(?&lt;!\w)(?=\w))
\B	really means	(?:(?&lt;=\w)(?=\w)|(?&lt;!\w)(?!\w))</code></pre>

<p>In contrast, <code>\b{...}</code> and <code>\B{...}</code> may or may not match at the beginning and end of the line, depending on the boundary type. These implement the Unicode default boundaries, specified in <a href="https://www.unicode.org/reports/tr14/">https://www.unicode.org/reports/tr14/</a> and <a href="https://www.unicode.org/reports/tr29/">https://www.unicode.org/reports/tr29/</a>. The boundary types are:</p>

<dl>

<dt id="\b{gcb}-or-\b{g}"><a class="permalink" href="perlrebackslash.html#%5Cb%7Bgcb%7D-or-%5Cb%7Bg%7D">#</a><a id="b-gcb-or-b-g"></a><code>\b{gcb}</code> or <code>\b{g}</code></dt>
<dd>

<p>This matches a Unicode &quot;Grapheme Cluster Boundary&quot;. (Actually Perl always uses the improved &quot;extended&quot; grapheme cluster&quot;). These are explained below under <code><a href="perlrebackslash.html#%5CX">&quot;\X&quot;</a></code>. In fact, <code>\X</code> is another way to get the same functionality. It is equivalent to <code>/.+?\b{gcb}/</code>. Use whichever is most convenient for your situation.</p>

</dd>
<dt id="\b{lb}"><a class="permalink" href="perlrebackslash.html#%5Cb%7Blb%7D">#</a><a id="b-lb"></a><code>\b{lb}</code></dt>
<dd>

<p>This matches according to the default Unicode Line Breaking Algorithm (<a href="https://www.unicode.org/reports/tr14/">https://www.unicode.org/reports/tr14/</a>), as customized in that document (<a href="https://www.unicode.org/reports/tr14/tr14-35.html#Example7">Example 7 of revision 35</a>) for better handling of numeric expressions.</p>

<p>This is suitable for many purposes, but the <a href="./Unicode::LineBreak.html">Unicode::LineBreak</a> module is available on CPAN that provides many more features, including customization.</p>

</dd>
<dt id="\b{sb}"><a class="permalink" href="perlrebackslash.html#%5Cb%7Bsb%7D">#</a><a id="b-sb"></a><code>\b{sb}</code></dt>
<dd>

<p>This matches a Unicode &quot;Sentence Boundary&quot;. This is an aid to parsing natural language sentences. It gives good, but imperfect results. For example, it thinks that &quot;Mr. Smith&quot; is two sentences. More details are at <a href="https://www.unicode.org/reports/tr29/">https://www.unicode.org/reports/tr29/</a>. Note also that it thinks that anything matching <a href="perlrebackslash.html#%5CR">&quot;\R&quot;</a> (except form feed and vertical tab) is a sentence boundary. <code>\b{sb}</code> works with text designed for word-processors which wrap lines automatically for display, but hard-coded line boundaries are considered to be essentially the ends of text blocks (paragraphs really), and hence the ends of sentences. <code>\b{sb}</code> doesn&#39;t do well with text containing embedded newlines, like the source text of the document you are reading. Such text needs to be preprocessed to get rid of the line separators before looking for sentence boundaries. Some people view this as a bug in the Unicode standard, and this behavior is quite subject to change in future Perl versions.</p>

</dd>
<dt id="\b{wb}"><a class="permalink" href="perlrebackslash.html#%5Cb%7Bwb%7D">#</a><a id="b-wb"></a><code>\b{wb}</code></dt>
<dd>

<p>This matches a Unicode &quot;Word Boundary&quot;, but tailored to Perl expectations. This gives better (though not perfect) results for natural language processing than plain <code>\b</code> (without braces) does. For example, it understands that apostrophes can be in the middle of words and that parentheses aren&#39;t (see the examples below). More details are at <a href="https://www.unicode.org/reports/tr29/">https://www.unicode.org/reports/tr29/</a>.</p>

<p>The current Unicode definition of a Word Boundary matches between every white space character. Perl tailors this, starting in version 5.24, to generally not break up spans of white space, just as plain <code>\b</code> has always functioned. This allows <code>\b{wb}</code> to be a drop-in replacement for <code>\b</code>, but with generally better results for natural language processing. (The exception to this tailoring is when a span of white space is immediately followed by something like U+0303, COMBINING TILDE. If the final space character in the span is a horizontal white space, it is broken out so that it attaches instead to the combining character. To be precise, if a span of white space that ends in a horizontal space has the character immediately following it have any of the Word Boundary property values &quot;Extend&quot;, &quot;Format&quot; or &quot;ZWJ&quot;, the boundary between the final horizontal space character and the rest of the span matches <code>\b{wb}</code>. In all other cases the boundary between two white space characters matches <code>\B{wb}</code>.)</p>

</dd>
</dl>

<p>It is important to realize when you use these Unicode boundaries, that you are taking a risk that a future version of Perl which contains a later version of the Unicode Standard will not work precisely the same way as it did when your code was written. These rules are not considered stable and have been somewhat more subject to change than the rest of the Standard. Unicode reserves the right to change them at will, and Perl reserves the right to update its implementation to Unicode&#39;s new rules. In the past, some changes have been because new characters have been added to the Standard which have different characteristics than all previous characters, so new rules are formulated for handling them. These should not cause any backward compatibility issues. But some changes have changed the treatment of existing characters because the Unicode Technical Committee has decided that the change is warranted for whatever reason. This could be to fix a bug, or because they think better results are obtained with the new rule.</p>

<p>It is also important to realize that these are default boundary definitions, and that implementations may wish to tailor the results for particular purposes and locales. For example, some languages, such as Japanese and Thai, require dictionary lookup to accurately determine word boundaries.</p>

<p>Mnemonic: <i>b</i>oundary.</p>

</dd>
</dl>

<h4 id="Examples4"><a class="permalink" href="perlrebackslash.html#Examples4">#</a>Examples</h4>

<pre><code> &quot;cat&quot;   =~ /\Acat/;     # Match.
 &quot;cat&quot;   =~ /cat\Z/;     # Match.
 &quot;cat\n&quot; =~ /cat\Z/;     # Match.
 &quot;cat\n&quot; =~ /cat\z/;     # No match.

 &quot;cat&quot;   =~ /\bcat\b/;   # Matches.
 &quot;cats&quot;  =~ /\bcat\b/;   # No match.
 &quot;cat&quot;   =~ /\bcat\B/;   # No match.
 &quot;cats&quot;  =~ /\bcat\B/;   # Match.

 while (&quot;cat dog&quot; =~ /(\w+)/g) {
     print $1;           # Prints &#39;catdog&#39;
 }
 while (&quot;cat dog&quot; =~ /\G(\w+)/g) {
     print $1;           # Prints &#39;cat&#39;
 }

 my $s = &quot;He said, \&quot;Is pi 3.14? (I&#39;m not sure).\&quot;&quot;;
 print join(&quot;|&quot;, $s =~ m/ ( .+? \b     ) /xg), &quot;\n&quot;;
 print join(&quot;|&quot;, $s =~ m/ ( .+? \b{wb} ) /xg), &quot;\n&quot;;
prints
 He| |said|, &quot;|Is| |pi| |3|.|14|? (|I|&#39;|m| |not| |sure
 He| |said|,| |&quot;|Is| |pi| |3.14|?| |(|I&#39;m| |not| |sure|)|.|&quot;</code></pre>

<h2 id="Misc"><a class="permalink" href="perlrebackslash.html#Misc">#</a>Misc</h2>

<p>Here we document the backslash sequences that don&#39;t fall in one of the categories above. These are:</p>

<dl>

<dt id="\K"><a class="permalink" href="perlrebackslash.html#%5CK">#</a><a id="K"></a>\K</dt>
<dd>

<p>This appeared in perl 5.10.0. Anything matched left of <code>\K</code> is not included in <code>$&amp;</code>, and will not be replaced if the pattern is used in a substitution. This lets you write <code>s/PAT1 \K PAT2/REPL/x</code> instead of <code>s/(PAT1) PAT2/${1}REPL/x</code> or <code>s/(?&lt;=PAT1) PAT2/REPL/x</code>.</p>

<p>Mnemonic: <i>K</i>eep.</p>

</dd>
<dt id="\N"><a class="permalink" href="perlrebackslash.html#%5CN">#</a><a id="N"></a>\N</dt>
<dd>

<p>This feature, available starting in v5.12, matches any character that is <b>not</b> a newline. It is a short-hand for writing <code>[^\n]</code>, and is identical to the <code>.</code> metasymbol, except under the <code>/s</code> flag, which changes the meaning of <code>.</code>, but not <code>\N</code>.</p>

<p>Note that <code>\N{...}</code> can mean a <a href="perlrebackslash.html#Named-or-numbered-characters-and-character-sequences">named or numbered character </a>.</p>

<p>Mnemonic: Complement of <i>\n</i>.</p>

</dd>
<dt id="\R"><a class="permalink" href="perlrebackslash.html#%5CR">#</a><a id="R"></a>\R </dt>
<dd>

<p><code>\R</code> matches a <i>generic newline</i>; that is, anything considered a linebreak sequence by Unicode. This includes all characters matched by <code>\v</code> (vertical whitespace), and the multi character sequence <code>&quot;\x0D\x0A&quot;</code> (carriage return followed by a line feed, sometimes called the network newline; it&#39;s the end of line sequence used in Microsoft text files opened in binary mode). <code>\R</code> is equivalent to <code>(?&gt;\x0D\x0A|\v)</code>. (The reason it doesn&#39;t backtrack is that the sequence is considered inseparable. That means that</p>

<pre><code class="plaintext">&quot;\x0D\x0A&quot; =~ /^\R\x0A$/   # No match</code></pre>

<p>fails, because the <code>\R</code> matches the entire string, and won&#39;t backtrack to match just the <code>&quot;\x0D&quot;</code>.) Since <code>\R</code> can match a sequence of more than one character, it cannot be put inside a bracketed character class; <code>/[\R]/</code> is an error; use <code>\v</code> instead. <code>\R</code> was introduced in perl 5.10.0.</p>

<p>Note that this does not respect any locale that might be in effect; it matches according to the platform&#39;s native character set.</p>

<p>Mnemonic: none really. <code>\R</code> was picked because PCRE already uses <code>\R</code>, and more importantly because Unicode recommends such a regular expression metacharacter, and suggests <code>\R</code> as its notation.</p>

</dd>
<dt id="\X"><a class="permalink" href="perlrebackslash.html#%5CX">#</a><a id="X"></a>\X </dt>
<dd>

<p>This matches a Unicode <i>extended grapheme cluster</i>.</p>

<p><code>\X</code> matches quite well what normal (non-Unicode-programmer) usage would consider a single character. As an example, consider a G with some sort of diacritic mark, such as an arrow. There is no such single character in Unicode, but one can be composed by using a G followed by a Unicode &quot;COMBINING UPWARDS ARROW BELOW&quot;, and would be displayed by Unicode-aware software as if it were a single character.</p>

<p>The match is greedy and non-backtracking, so that the cluster is never broken up into smaller components.</p>

<p>See also <a href="perlrebackslash.html#%5Cb%7B%7D%2C-%5Cb%2C-%5CB%7B%7D%2C-%5CB"><code>\b{gcb}</code></a>.</p>

<p>Mnemonic: e<i>X</i>tended Unicode character.</p>

</dd>
</dl>

<h4 id="Examples5"><a class="permalink" href="perlrebackslash.html#Examples5">#</a>Examples</h4>

<pre><code>$str =~ s/foo\Kbar/baz/g; # Change any &#39;bar&#39; following a &#39;foo&#39; to &#39;baz&#39;
$str =~ s/(.)\K\g1//g;    # Delete duplicated characters.

&quot;\n&quot;   =~ /^\R$/;         # Match, \n   is a generic newline.
&quot;\r&quot;   =~ /^\R$/;         # Match, \r   is a generic newline.
&quot;\r\n&quot; =~ /^\R$/;         # Match, \r\n is a generic newline.

&quot;P\x{307}&quot; =~ /^\X$/     # \X matches a P with a dot above.</code></pre>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
